/*
 * Project Name: jmax
 * File Name: RCUDeviceRtClient.java
 * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
 */
package com.xdtech.hotel.monitor;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 
 * @version TODO 添加版本
 * @see 相关类或方法，不需要请删除此行
 * @since 2015-4-23 上午9:52:16
 */
public class RCUDeviceRtClient extends Client
{
	public RCUDeviceRtClient(String id)
	{
		super(id);
	}
	
	private List<RCURunEvent> accTransactionList =  Collections.synchronizedList(new ArrayList<RCURunEvent>());
	
	
	
	public List<RCURunEvent> getAccTransactionList()
	{
		return accTransactionList;
	}

	public List<RCURunEvent> clientGetAccTransactionList()
	{
		List<RCURunEvent> rcuRunEvents = new ArrayList<RCURunEvent>(this.accTransactionList);
		setLastAccessedTime(System.currentTimeMillis());
		accTransactionList.clear();
		return rcuRunEvents;
	}
	
	public void setAccTransactionList(List<RCURunEvent> accTransactionList)
	{
		this.accTransactionList = accTransactionList;
	}


	
}
